<template>
	<view class="content">
		<!--留言提交-->
		<view class="input_box">
			<textarea placeholder="请输入要留言的内容" v-model="list.content" class="textarea border"/>
			<input type='text' placeholder="请输入用户名" v-model="list.name" class="input border"/>
			<button type="ensure" @click="ensure">确定</button>
			<button type="submit" @click="Add">提交</button>
		</view>
		<!--留言列表-->
		<view class="list"></view>
	</view>
</template>

<script>
		export default{
			data(){
				return{
					list:{
						name:"",
						content:""
					}
				}
			},
			
			methods:{
				Add(){
					let data=list.data;
					uniCloud.callFunction({
						name: 'Add',
						data: data
					})
				}
				}
		
		}
</script>

<style lang='less' scoped>

</style>
